package com.shensi.api.admin.client.applet;

import com.shensi.api.admin.client.fallback.applet.QuerySummaryClientFallBack;
import com.shensi.api.admin.domian.applet.dto.PayOrderDto;
import com.shensi.api.admin.domian.applet.dto.QuerySummaryRequestDto;
import com.shensi.common.core.constant.CloudConstant;
import com.shensi.common.core.domain.AjaxResult;
import com.shensi.common.core.page.TableDataInfo;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author: budian
 * @since: 2023/12/12
 */
@FeignClient(
        value = CloudConstant.ADMIN_SERVER,
        fallbackFactory = QuerySummaryClientFallBack.class)
@Component
public interface QuerySummaryClient {

    /**
     * 查询优惠劵列表
     */
    @GetMapping("/applet/summary/list")
    public AjaxResult list(@SpringQueryMap QuerySummaryRequestDto request) ;

    /**
     * 查询所有订单包括未支付的
     */

    @GetMapping("/applet/orderList")
    public TableDataInfo allList(@SpringQueryMap PayOrderDto payOrder) ;

    @GetMapping("/applet/gunlist")
    public AjaxResult gunlist(@ApiParam(value = "用户名", required = false) String userId) ;

    @GetMapping("/applet/appletOrderSum")
    public AjaxResult appletOrderSum(@SpringQueryMap PayOrderDto payOrder);

}
